<?php

namespace support\Service;

use support\Backend\BackendService;
use Tinywan\Captcha\Captcha;

class LoginService extends BackendService
{

    /**
     * 获取验证码
     * @return array
     * @since 2025/01/07
     */

    public function captcha()
    {
        $res = Captcha::base64();
        $result['key'] = $res['key'];
        $result['captcha'] = $res['base64'];
        return $result;
    }
}